<footer class="footer" style="clear:both;">
    <div class="container">
        <div class="row footer-nav hidden-xs">
            <div class="col-sm-4">
                <h3 class="footer-item-title">关于</h3>
                <ul class="footer-item">
                    <li><a href="/pages/index/about">关于我们</a></li>
                    <li><a href="/pages/index/contact">联系我们</a></li>
                </ul>
            </div>
            <div class="col-sm-4">
                <h3 class="footer-item-title">支持</h3>
                <ul class="footer-item">
                    <?php if (!empty($token) && !empty($token->UserID)): ?>

                        <li><a href="/feedback">需求反馈</a></li>
                        <li><a href="/feedback/index/case">提交工单</a></li>
                    <?php else: ?>

                    <?php endif; ?>

                </ul>
            </div>
            <div class="col-sm-4">
                <h3 class="footer-item-title">文档</h3>
                <ul class="footer-item">
                    <?php if (!empty($token) && !empty($token->UserID)): ?>
                        <li><a href="https://space.bilibili.com/3493283001011095">使用教程</a></li>
                    <?php else: ?>

                    <?php endif; ?>
                </ul>
            </div>

            <div class="col-sm-4">
                <h3 class="footer-item-title">更多</h3>
                <ul class="footer-item">
                    <?php if (!empty($token) && !empty($token->UserID)): ?>
                        <li><a href="/feedback/index/invoice">申请发票</a></li>
                    <?php else: ?>

                    <?php endif; ?>
                </ul>
            </div>
            <div class="col-md-6 col-md-offset-2  col-sm-8 col-lg-6 col-lg-offset-2 footer-contact">
                <p>联系客服：<a class="footer-contact-qq" target="_blank" href="/pages/index/contact" rel="nofollow"><i
                                class="fa fa-weixin"></i> 立即咨询</a></p>
                <!-- <p>QQ交流群：<a href="//qm.qq.com/cgi-bin/qm/qr?k=31NJH9FsQ3peTg9b31zofvq7pEyCeNVS&jump_from=webapi" target="_blank" rel="nofollow">929419710</a></p> -->
                <p style="font-size:13px;line-height: 1.5;margin-top: 3px;color: #999;">工作时间：周一至周五 <br>9:30-18:30，节假日休息
                </p>
            </div>
        </div>
    </div>

    <div class="copyright container clearfix">
        <?php /*
        <div class="links">
            <span>友情链接：</span>
            <a href="https://www.iztwp.com" target="_blank">WordPress主题</a>
            <a href="https://www.datahunter.cn" target="_blank">bi工具</a>
            <a href="https://www.themepark.com.cn" target="_blank">WordPress主题公园</a>
            <a href="https://www.uctheme.com" target="_blank">淘宝客主题</a>
            <a href="http://www.xintheme.com" target="_blank">WordPress主题</a>
            <a href="http://www.seo628.com" target="_blank">wordpress模板</a>
            <a href="http://www.wazhuti.com" target="_blank">挖主题</a>
            <a href="https://www.suxing.me" target="_blank">WordPress主题</a>
            <a href="https://www.changxingyun.com" target="_blank">云服务器</a>
            <a href="https://www.wpzhiku.com" target="_blank">WordPress主题开发</a>
            <a href="https://www.nicetheme.cn" target="_blank">nicetheme</a>
            <a href="https://www.cnwper.com" target="_blank">wordpress插件</a>
            <a href="../products" target="_blank">原创WordPress主题</a>
            <a href="links.html" target="_blank">申请友链>></a>
        </div>
         */ ?>
        <p style="font-size:13px">耗时: <?= ut($this->request->start_time) ?>
            &nbsp;&nbsp;内存: <?= um($this->request->start_memory) ?>&nbsp;&nbsp;在线: <i
                    id="connection_num"><?= $this->_T('Config')->get('connection_num', 'value') ?></i>&nbsp;&nbsp;请求:
            <i id="request_count"><?= $this->_T('Config')->get('request_count', 'value') ?></i></p>
        <p>&copy; 2015-<?= date('Y') ?> 长沙比赞信息技术有限公司 版权所有 更专业的<a href="/">电商运营工具箱</a>、<a
                    href="/">电商推广工具</a>、<a href="/">群爆款工具箱</a>软件服务商</p>
        <p class="footer-beian"><a rel="nofollow" target="_blank"
                                   href="https://beian.miit.gov.cn">湘ICP备2021011260号-3</a> <a rel="nofollow"
                                                                                                 target="_blank"
                                                                                                 href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44010602007427"><img
                        style="width: 15px" src="/static/image/ga.png" alt="公安备案"> 湘公网安备43010502001472号</a>
        </p>
    </div>
</footer>

<div class="fixed-tool">
    <div class="ft-item">
        <a class="contact" href="javascript:;" rel="nofollow" data-type="wechat">
            <i class="fa fa-weixin"></i>
            微信咨询
            <span class="ft-item-qrcode">
                    <h4 class="ft-item-qrtitle">微信扫码咨询</h4>
                    <img src="../../static/image/kf.png" alt="企业微信咨询">
                </span>
        </a>
    </div>
    <div class="ft-item">
        <a class="contact" href="https://qm.qq.com/q/5TCWe1NlhC" target="_blank" rel="nofollow" data-type="qq">
            <i class="fa fa-qq"></i>
            QQ咨询
        </a>
    </div>
    <div class="ft-item">
        <a class="contact" href="javascript:;">
            <i class="fa fa-qr-scan"></i>
            扫码关注
            <span class="ft-item-qrcode">
                    <h4 class="ft-item-qrtitle">扫码关注微信</h4>
                    <span class="ft-item-subtitle">关注我们获取最新资讯</span>
                    <img src="../../static/image/gzh.jpg" alt="关注微信公众号">
                    <span class="ft-item-qrtext">立即扫码关注我们</span>
                </span>
        </a>
    </div>
    <div class="ft-item gotop" id="j-top" style="display: none;">
        <i class="fa fa-arrow-up"></i>
    </div>
</div>
<script src="/static/js/jquery-1.12.4.min.js"></script>
<script src="/static/js/font_2158409_yew7y08lo1d.js"></script>
<script src="/static/js/main-202404181602.js"></script>
<script src="/static/js/plyr-3.6.2.min.js"></script>

<script src="/socket/websocket.js"></script>
<script>
    if (jQuery('.j-plyr-player').length) {
        jQuery('.j-plyr-player').each(function (i, el) {
            var player = new Plyr(el, {
                controls: ['play-large', 'play', 'progress', 'current-time', 'mute', 'volume', 'pip', 'fullscreen'],
                ratio: '16:9',
                fullscreen: {enabled: true, fallback: true, iosNative: true}
            });
            player.on('play', function (e) {
                var type = $(e.target).find('.j-plyr-player').data('type');
                console.log(type, 'type')
                gtag('event', 'plyr', {
                    'event_category': '点击事件',
                    'event_label': 'play-video' + (type ? ('-' + type) : '')
                });
            });
        });
    }
    var webim = {
        server: 'ws://127.0.0.1:8364/ws'
    }
    $(document).ready(function () {
        if (window.WebSocket || window.MozWebSocket) {
            ws = new ReconnectingWebSocket(webim.server, null, {maxReconnectAttempts: 10, timeoutInterval: 3000});
        }
        //使用flash websocket
        else if (webim.flash_websocket) {
            WEB_SOCKET_SWF_LOCATION = "/socket/websocket.swf";
            $.getScript("/socket/swfobject.js", function () {
                ws = new WebSocket(webim.server);
            });
        } else {
            alert('您的浏览器不支持websocket');
        }

        ws.onopen = function (e) {
            ws.send('p')
            ping_time = setInterval(function () {
                ws.send('c')
            }, 10000);
        };

        //有消息到来时触发
        ws.onmessage = function (e) {
            if (e.data == 'p') {
                return;
            }
            var message = JSON.parse(e.data);
            if (message.c) {
                $('#connection_num').text(message.c);
            }
            if (message.r) {
                $('#request_count').text(message.r);
            }
        };

        /**
         * 连接关闭事件
         */
        ws.onclose = function (e) {
            clearInterval(ping_time);
        };
    });

</script>